﻿using SQLite.DbEntities;
using SQLite.Reps.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SQLite.Reps
{
	public class TestRep : Rep<TestDbEntity>
	{
		public TestRep(SQLiteAsyncConnection con) : base(con) { }

		public async Task UpdateTestData(Guid id, string data)
		{
			var sqlCommand = string.Format("Update {0} Set TestData = '{1}' where Id = ?", typeof(TestDbEntity).Name, data);
			var count = await _connection.ExecuteAsync(sqlCommand, id);
		}
	}
}
